package com.lwd.spring.study.core.BeanFactoryPostProcessor;

import com.lwd.spring.study.config.CustomerConfig;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotatedBeanDefinitionReader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

/**
 * @Author: 刘东（挂兰）
 * @Date: 2023/12/13 20:48:19
 * @Description:
 */
public class TestMain {
    public static void main(String[] args) {

        // 仅仅读取xml配置的bean
//        ConfigurableListableBeanFactory bf = new XmlBeanFactory(new ClassPathResource("spring.xml"));
//        ObscenityRemovingBeanFactoryPostProcessor bean = bf.getBean(ObscenityRemovingBeanFactoryPostProcessor.class);
//
//        bean.postProcessBeanFactory(bf);
//        System.out.println(bf.getBean("simpleBean"));


    }

}
